# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

import json
import os
import os.path
import time

def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.


def create_flop_file():
    with open('flop.txt', 'r') as f:
        lines = f.readlines()
        for line in lines:
            flop_strategy_array = line.split('\t')
            fd = os.open('flop_files/' + flop_strategy_array[0] + '.txt', os.O_CREAT)
            os.close(fd)
            time.sleep(3)


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    create_flop_file()
    print_hi('PyCharm')

# See PyCharm help at https://www.jetbrains.com/help/pycharm/
